class Transport < ActiveRecord::Base
  attr_accessible :description_eng, :description_idn, :is_on_promoted, :stars, :tranport_type_id, :is_published, :is_recomended, :person, :primary_picture, :transport_name
  mount_uploader :primary_picture, CarUploader

  validates :description_eng, :description_idn, :person, :primary_picture, :transport_name, :presence => true

  has_many :transport_image, :dependent => :destroy
  has_many :transport_packages, :dependent => :destroy
end
